home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ircii2-6.zip / SRC\IRCII-2.6\INCLUDE\EXEC.H < prev    next >
C/C++ Source or Header  |  1994-12-28  |  2KB  |  72 lines

  1. /*
  2.  * exec.h: header for exec.c 
  3.  *
  4.  * Written By Michael Sandrof
  5.  *
  6.  * Copyright(c) 1990 
  7.  *
  8.  * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 
  9.  *
  10.  * @(#)$Id: exec.h,v 1.10 1994/07/02 02:38:10 mrg Stab $
  11.  */
  12.  
  13. #ifndef _EXEC_H_
  14. #define _EXEC_H_
  15.  
  16. #include <sys/types.h>
  17.  
  18. #ifdef NeXT        /* lameness for configure/NeXT -phone */
  19. # ifndef BSDWAIT
  20. #  define BSDWAIT
  21. # endif
  22. #endif
  23.  
  24. #ifndef WAITSTUFF_DECLARED
  25. # ifdef BSDWAIT
  26. #  ifndef WAIT3_DECLARED
  27. struct rusage;
  28. union wait;
  29. extern int   wait3 __P((union wait *, int, struct rusage *));
  30. #  endif /* WAIT3_DECLARED */
  31. # else /* BSDWAIT */
  32. #  ifndef WAITPID_DECLARED
  33. extern short waitpid __P((int, int *, int));
  34. #  endif /* WAITPID_DECLARED */
  35. # endif /* BSDWAIT */
  36. #endif /* WAITSTUFF_DECLARED */
  37.  
  38. #ifndef WTERMSIG
  39. # ifndef BSDWAIT /* if wait is NOT a union: */
  40. #  define WTERMSIG(status) ((status) & 0177)
  41. # else
  42. #  define WTERMSIG(status) status.w_T.w_Termsig
  43. # endif
  44. #endif
  45.  
  46. #ifndef WEXITSTATUS
  47. # ifndef BSDWAIT
  48. #  define WEXITSTATUS(status) ((status) & 0xff00) >> 8        /* dgux 5.4.1 */
  49. # else
  50. #  define WEXITSTATUS(status) status.w_T.w_Retcode
  51. # endif
  52. #endif
  53.  
  54. extern    void    check_wait_status();
  55. extern    void    check_process_list();
  56. extern    void    check_process_limits();
  57. extern    void    do_processes();
  58. extern    void    set_process_bits();
  59. extern    int    text_to_process();
  60. extern    char    *signals[];
  61. extern    void    clean_up_processes();
  62. extern    int    is_process();
  63. extern    int    get_process_index();
  64. extern    void    exec_server_delete();
  65. extern    int    is_process_running();
  66. extern    void    add_process_wait();
  67. extern    void    set_wait_process();
  68. extern    void    close_all_exec();
  69. extern    int    logical_to_index();
  70.  
  71. #endif /* _EXEC_H_ */
  72.